import Vue from 'vue'
import Router from 'vue-router'

// 后台系统
import index from '@/components/page/system_management/index'
import login from '@/components/page/system_management/login'
import businessReport from '@/components/page/system_management/businessReport'
import enrollmentReport from '@/components/page/system_management/enrollmentReport'
import openCampus  from '@/components/page/system_management/openCampus'
import operationManagement from '@/components/page/system_management/operationManagement'
import payRefund from '@/components/page/system_management/payRefund'
import schoolManagement from '@/components/page/system_management/schoolManagement'
import roleManagement from '@/components/page/system_management/roleManagement'
import staffManagement from '@/components/page/system_management/staffManagement'
import studentManagement from '@/components/page/system_management/studentManagement'
import targetSetting from '@/components/page/system_management/targetSetting'
import targetTracking from '@/components/page/system_management/targetTracking'
import standardProduct from '@/components/page/system_management/standardProduct'
import subjectManagement from '@/components/page/system_management/subjectManagement'
import largeclassManagement from '@/components/page/system_management/largeclassManagement'
import enrolmentManagement from '@/components/page/system_management/enrolmentManagement'
import classManagement from '@/components/page/system_management/classManagement'
import classRoomManagement from '@/components/page/system_management/classRoomManagement'
import evaluationAudition from '@/components/page/system_management/evaluateManagement/evaluationAudition'
import evaluationMonth from '@/components/page/system_management/evaluateManagement/evaluationMonth'

import orderDetail from '@/components/page/system_management/orderDetail'
import home from '@/components/page/system_management/home'
import personCenter from '@/components/page/system_management/personCenter'

import addClass from '@/components/page/system_management/addClass'
import addPunchTask from '@/components/page/system_management/addPunchTask'
import addClassPackage from '@/components/page/system_management/addClassPackage'


// 协议页面

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/login'
    }, 
    {
      path: '/login',
      name: 'login',
      component: login
    }, 
    
    {
      path: '/index',
      name: 'index',
      component: index,
      children: [
        {
          path: '/home',
          name: 'home',
          component: home
        },
        {
          path: '/personCenter',
          name: 'personCenter',
          component: personCenter
        },
        {
          path: '',
          redirect: '/payRefund',
          component: payRefund 
        },
        {
          path: '/businessReport',
          name: 'businessReport',
          component: businessReport
        },
        {
          path: '/enrolmentManagement',
          name: 'enrolmentManagement',
          component: enrolmentManagement
        },
        {
          path: '/enrollmentReport',
          name: 'enrollmentReport',
          component: enrollmentReport
        },
        {
          path: '/openCampus',
          name: 'openCampus',
          component: openCampus 
        },
        {
          path: '/schoolManagement',
          name: 'schoolManagement',
          component: schoolManagement 
        },
        {
          path: '/studentManagement',
          name: 'studentManagement',
          component: studentManagement 
        },
        {
          path: '/roleManagement',
          name: 'roleManagement',
          component: roleManagement 
        },
        {
          path: '/staffManagement',
          name: 'staffManagement',
          component: staffManagement 
        },
        {
          path: '/payRefund',
          name: 'payRefund',
          component: payRefund

        },
        {
          path: '/targetSetting',
          name: 'targetSetting',
          component: targetSetting

        },
        {
          path: '/targetTracking',
          name: 'targetTracking',
          component: targetTracking

        },
        {
          path: '/operationManagement',
          name: 'operationManagement',
          component: operationManagement
        },
        {
          path: '/standardProduct',
          name: 'standardProduct',
          component: standardProduct
        },
        {
          path: '/subjectManagement',
          name: 'subjectManagement',
          component: subjectManagement
        },
        {
          path: '/largeclassManagement',
          name: 'largeclassManagement',
          component: largeclassManagement
        },
        {
          path: '/orderDetail',
          name: 'orderDetail',
          component: orderDetail
        },
        {
          path: '/classManagement',
          name: 'classManagement',
          component: classManagement
        },
        {
          path: '/classRoomManagement',
          name: 'classRoomManagement',
          component: classRoomManagement
        },
        {
          path: '/evaluationAudition',
          name: 'evaluationAudition',
          component: evaluationAudition
        },
        {
          path: '/evaluationMonth',
          name: 'evaluationMonth',
          component: evaluationMonth
        },

        {
          path: '/addClass',
          name: 'addClass',
          component: addClass
        },
        {
          path: '/addPunchTask',
          name: 'addPunchTask',
          component: addPunchTask
        },
        {
          path: '/addClassPackage',
          name: 'addClassPackage',
          component: addClassPackage
        },
      ]
    },
    
  ]
})
